package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class BidEvaluationExpert {

    private static String bidEvaluationExpert="<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            "<bidEvaluationExpert> \n" +
            "    <tenderProjectCode>{0}</tenderProjectCode>\n" +
            "    <bidSectionCode>{1}</bidSectionCode>\n" +
            "    <unifiedDealCode>{2}</unifiedDealCode>\n" +
            "    <expertType>{3}</expertType>\n" +
            "    <expertName>{4}</expertName>\n" +
            "    <idCard>{5}</idCard>\n" +
            "    <idCardType>{6}</idCardType>\n" +
            "    <expertCheckInTime>{7}</expertCheckInTime>\n" +
            "    <isChairMan>{8}</isChairMan>\n" +
            "    <platFormCode>{9}</platFormCode>\n" +
            "    <pubServicePlatCode>{10}</pubServicePlatCode>\n" +
            "    <DataTimeStamp>{11}</DataTimeStamp>\n" +
            "</bidEvaluationExpert>";

    public static void setBidEvaluationExpert(String bidEvaluationExpert,String s0,String s1,String s2,String s3,String s4,String s5,String s6,String s7,String s8,String s9,String s10
            ,String s11) {
        BidEvaluationExpert.bidEvaluationExpert = MessageFormat.format(bidEvaluationExpert,s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,
                s11);
    }

    public static void setBidEvaluationExpert(){
        setBidEvaluationExpert(bidEvaluationExpert,
                ParameterUtils.get("tenderProjectCode"),
                ParameterUtils.get("bidSectionCode"),
                ParameterUtils.get("unifiedDealCode"),
                ParameterUtils.get("expertType"),
                ParameterUtils.get("expertName"),
                ParameterUtils.get("idCard"),
                ParameterUtils.get("idCardType"),
                ParameterUtils.get("expertCheckInTime"),
                ParameterUtils.get("isChairMan"),
                ParameterUtils.get("platFormCode"),
                ParameterUtils.get("pubServicePlatCode"),
                ParameterUtils.get("DataTimeStamp")
        );
    }

//    public static void main(String[] args) {
//        setBidEvaluationExpert();
//        System.out.println(bidEvaluationExpert);
//    }
}
